package thread;

public class ThreadDemo1 {
    public static void main(String[] args) {
        Thread my1 = new Mythread1();
        Thread my2 = new Mythread2();
        my1.start();
        my2.start();

    }
}
class Mythread1 extends Thread {
    public void run(){
        for(int i=0;i<1000;i++){
            System.out.println("你是谁啊");
        }
    }
}
class Mythread2 extends Thread{
    public void run(){
        for(int i=0;i<1000;i++){
            System.out.println("你是张三的朋友,王二麻子");
        }
    }
}